package org.example.library.model;

import lombok.Data;

import java.util.List;

@Data
public class PageResult<T> {
    private int total;//所有记录数

    private List<T> records; // 当前⻚数据

    private PageRequest pageRequest;
    public PageResult(Integer total, PageRequest pageRequest, List<T> records)
    {
        this.total = total;
        this.pageRequest = pageRequest;
        this.records = records;
    }
}